package com.example.mqttdemo.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;

/**
 *  设备表
 * @TableName devices
 */
@TableName(value ="devices")
@Data
public class Devices implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 设备唯一标识
     */
    @TableField(value = "device_id")
    private String deviceId;

    /**
     * 设备名称
     */
    @TableField(value = "device_name")
    private String deviceName;

    /**
     * 设备类型
     */
    @TableField(value = "device_type")
    private Object deviceType;

    /**
     * 设备状态
     */
    @TableField(value = "status")
    private Object status;

    /**
     * 设备位置
     */
    @TableField(value = "location")
    private String location;

    /**
     * 
     */
    @TableField(value = "created_time")
    private LocalDateTime createdTime;

    /**
     * 
     */
    @TableField(value = "updated_time")
    private LocalDateTime updatedTime;

    /**
     * 0未删 1已删
     */
    @TableField(value = "is_deleted")
    private Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}